<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>内容管理</title>
    <link href="/public/boot/css/bootstrap.min.css" rel="stylesheet">
    <link href="/public/common/css/font-awesome.min.css" rel="stylesheet">
    <link href="/public/system/css/stu.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>

<header>
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <span class="navbar-brand logo"><a href="<?php echo U('Index/index');?>">凉晨</a></span>
      </div>
    <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav in-menu">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="icon-reorder"></i>内容</a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('News/index');?>"><i class="icon-book"></i>文章</a></li>
                <li><a href="<?php echo U('Mood/index');?>"><i class="icon-heart-empty"></i>心情</a></li>
                <li><a href="<?php echo U('Photo/index');?>"><i class="icon-picture"></i>相册</a></li>
              </ul>
            </li>

            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="icon-user"></i>会员</a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('User/index');?>"><i class="icon-user"></i>会员</a></li>
                <li><a href="<?php echo U('User/Wechat');?>"><i class="icon-comments-alt"></i>粉丝</a></li>
              </ul>
            </li>
			<li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="icon-dashboard"></i>功能</a>
              <ul class="dropdown-menu">
              	<li><a href="<?php echo U('Wechat/index');?>"><i class="icon-comments-alt"></i>微信</a></li>
                <li><a href="<?php echo U('Guestbook/index');?>"><i class="icon-book"></i>留言</a></li>
                <li><a href="<?php echo U('Help/index');?>"><i class="icon-file-alt"></i>帮助</a></li>
              </ul>
            </li>         
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="icon-cogs"></i>系统</a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('Setup/index');?>"><i class="icon-book"></i>设置</a></li>
                <li><a href="<?php echo U('Admin/index');?>"><i class="icon-file-alt"></i>管理</a></li>
              </ul>
           </li>
            
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li><a href="#"><i class="icon-desktop"></i></a></li>
            <li><a href="<?php echo U('Login/logout');?>"><i class="icon-off"></i></a></li>
        </ul>
    </div>
  </div>
</nav>
</header>
<main>
	<div class="container">
		
		<div class="con">
			
		
		
		<div class="row">
			<div class="col-md-12">
				<div class="func">
				 <div class="col-md-6 curd">
					<a href="" class="green-b"><i class="icon-plus"></i>添加</a>
					<a href="" class="gules-b"><i class="icon-trash"></i>删除</a>
					<a href="" class="orange-b"><i class="icon-edit"></i>修改</a>
			   </div>
				 <div class="col-md-6 search">
					<form role="search" action="<?php echo U('/so/');?>">
					<div class="input-group">
            <input type="text" class="form-control" placeholder="想看什么..." name="key">
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit"><i class="icon-search"></i></button>
            </span>
          </div>
          </form>
				 </div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-md-12">
			<div class="panel panel-default">
  				<div class="panel-heading">文章列表</div>
  				<div class="table-responsive">
  					<table class="table table-hover">
  						<thead>
  							
  								<th>编号</th>
  								<th>头像</th>
  								<th>昵称</th>
  								<th>微信</th>
  								<th>状态</th>
  								<th>时间</th>
  								<th>操作</th>
  							
  						</thead>
  						<tbody>
  							<tr>
  								<td>1</td>
  								<td>
  									<div class="">
  									  <img class="table-user-img" src="http://wx.qlogo.cn/mmopen/vST8tK4L2aXxFw1iaLK1O47uKQWjaJHMOXXRkDr6jiceSaEicPYIbaEbh1TiczNOsGKlIibJ6QLF7U5OBuLlo4LYOxnyegFxO7MC9/0"/>
  									</div>
  								</td>
  								<td>嗨呀</td>
  								<td>关注</td>
  								<td>
  									<?php if(($vo["state"]) == "0"): ?><a href="<?php echo U('User/state',array('id'=>$vo['id']));?>" class="state-t">显示</a>
  									<?php else: ?>
  										<a href="<?php echo U('User/state',array('id'=>$vo['id']));?>" class="state-f">隐藏</a><?php endif; ?>
  								</td>
  								<td>2017-5-20</td>
  								<td>
  									<div class="curd-mi">
  									 <a href="<?php echo U('User/editor',array('id'=>$vo['id']));?>" class="light-blue-b"><i class="icon-edit"></i></a>
										 <a href="<?php echo U('User/delete',array('id'=>$vo['id']));?>" class="gules-b"><i class="icon-trash"></i></a>
										</div>
  								</td>
  							</tr>
  						</tbody>

  					</table>
  				</div>
			</div>
			</div>
		</div>
		<div class="row">
			
		</div>
		</div>
	</div>
</main>
<footer>
	
</footer>
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="/public/Boot/js/bootstrap.min.js"></script>
  </body>
</html>